import { Code, CreateDate, Entity, MemberId, Money, PrimaryUuid, UpdateDate, Uuid } from "@sker/core";


@Entity({
    name: 'kd_invoice_log'
})
export class KdInvoiceLog {
    @PrimaryUuid()
    id: string;

    @MemberId({ comment: '会员' })
    member_id: string;

    @Code({ comment: '发票号' })
    code: string;

    @Money({ comment: '金额' })
    fee: number;

    @Code({ comment: '状态', default: '0' })
    status: string;

    @Uuid({ comment: '抬头' })
    invoice_id: string;

    @Code({ comment: '发票代码' })
    sn: string;

    @Code({ comment: '类型', default: '0' })
    type: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}